package com.example.shirotest.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.shirotest.entry.Role;
import com.example.shirotest.entry.User;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface UserService extends IService<User> {

    List<User> getUserList();

    IPage<User> selectPageVo(Page<User> page);

    PageInfo<User> selectByPage(Integer page,Integer pagesize,String orderby);

    Boolean updateUserPwd(Integer id,String pwd);

    Boolean updateUserLocked(Integer id,Integer locked);

    Map<Integer, Role> getAllRoles();

    User getUserByAccount(String account);

    //通过账号获取角色
    String getRoleByUid(Integer uid);

    //通过账号获取权限
    Set<String> getPermsByUid(Integer uid);


}
